package pers.goetboy.sys.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.web.bind.annotation.*;
import pers.goetboy.common.AbstractController;
import pers.goetboy.sys.model.entity.Menu;
import pers.goetboy.sys.services.MenuService;


/**
 * @author goetb
 */
@RestController("/menu")
public class MenuController extends AbstractController<Menu,MenuService> {

    /**
     * 获取用户列表
     */
    @GetMapping("/list")
    public IPage<Menu> list(Integer current, Integer size) {
        return service.page(new Page(current, size));
    }
}
